home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _6885880B172D47A2A6EDF20DDE3164D8 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.3 KB  |  45 lines

  1.  
  2.  
  3. #include "../common/header.ds"
  4. output "p:/base/ds/tsr1"
  5.  
  6. local entity camroom_door
  7. local entity camroom_hole
  8. local entity camdoorkicker // the guy who will actually kick the door open
  9. local entity kickedopen // the func wall clip brush that is collision for when it is kicked open
  10. local entity playerpush
  11. local int sig1
  12.  
  13. camroom_door = find entity with targetname "camroom_door"
  14. camroom_hole = find entity with targetname "camroom_hole"
  15. camdoorkicker = find entity with targetname "camdoorkicker"
  16. kickedopen = find entity with targetname "kickedopen"
  17. playerpush  = find entity with targetname "playerpush"
  18.  
  19. camroom_hole.movetype = MOVETYPE_NOCLIP
  20.  
  21.  
  22. if camdoorkicker.health <= 0
  23.    exit
  24.  
  25. endif
  26.  
  27.  
  28.  
  29. use entity camroom_hole
  30.  
  31. animate entity camdoorkicker performing action STD_XKICKDOOR_N_A_A  // plays the actual kicking animation
  32. animate entity camdoorkicker performing action SCRIPT_RELEASE // lets him go from the script
  33. camroom_door.health = 0
  34.  
  35.  
  36. moverotate entity camroom_door from file "generic_door_cw.rof" signaling sig1
  37. play sound "impact/vending/kick.wav" for entity camroom_door at volume 0.9
  38. use entity playerpush
  39. wait .5 seconds 
  40. use entity playerpush
  41. use entity kickedopen // spawns the func wall in for clipping
  42. wait for all clearing sig1
  43.  
  44.  
  45. // End